/***********************************
* Name: InterSalto.java
* Date: Oct 4, 2010
* @author martin
* Description:
***********************************/

package interCodeGen;


public class InterSalto implements Cod3Dir {
                            //id2 -> ""
                            //id3 -> ""

    private String etiqueta = "";   //id1
                            //id2 -> ""
                            //id3 -> ""

    /*****************************************
     * InterEtiqueta
     * constructor
     *****************************************/
    public InterSalto(String etiqueta){
        this.etiqueta = etiqueta;
    }

    /*****************************************
     * getCodeString
     * @return the complete code of the Cod3Dir
     *****************************************/
    public String getCodeString() {
        return "\t"+"goto "+this.getEtiqueta();
    }

    /*****************************************
     * @return the etiqueta
     *****************************************/
    public String getEtiqueta() {
        return etiqueta;
    }

}
